package com.larly.model.enums.interactions;

import lombok.Getter;

@Getter
public enum InteractionsIsFeaturedEnum {
    // 普通
    NORMAL(0, "普通"),
    // 精选
    FEATURED(1, "精选");
    private Integer key;
    private String value;

    InteractionsIsFeaturedEnum(Integer key, String value) {
        this.key = key;
        this.value = value;
    }

    public static String getValue(Integer key) {
        for (InteractionsIsFeaturedEnum item : InteractionsIsFeaturedEnum.values()) {
            if (item.getKey().equals(key)) {
                return item.getValue();
            }
        }
        return null;
    }

}
